using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ScreenMonkey.Plugin.Clips.Song
{
    public partial class LicenseTextDialog : Form
    {
        public LicenseTextDialog()
        {
            InitializeComponent();
        }

        public string LicenseText
        {
            get 
            {
                if (showLicenseChk.Checked)
                    return licenseText.Text;
                return ""; 
            }
            set 
            {
                licenseText.Text = value;
                showLicenseChk.Checked = !string.IsNullOrEmpty(value);
            }
        }
	

        private void OKButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void CancelButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
             licenseText.Enabled = showLicenseChk.Enabled;
        }
    }
}